﻿using Admin.Roles;
using Admin.UserInfos;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.UserRoles
{
    public class UserRole
    {
        /// <summary>
        /// 管理角色表
        /// </summary>
        public int UserRoleId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [ForeignKey("RoleId")]
        public Role Role { get; set; }

        public int RoleId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [ForeignKey("UserInfoId")]
        public UserInfo UserInfo { get; set; }

        public int UserInfoId { get; set; }
    }
}
